package com.demo.petshop.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  实体类。
 *
 * @author lenovo
 * @since 2025-06-09
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "users")
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private Integer userId;

    private String username;

    private String passwordHash;

    private String email;

    private String phone;

    private String avatar;

    private String createdAt;

    private String updatedAt;
    
    // 用户个人资料
    private String nickname;
    
    private String bio;
    
    private String gender;
    
    private String birthday;
    
    // 用户设置
    private Integer useBiometric; // 0: 禁用, 1: 启用
    
    private String biometricType; // 'fingerprint' 或 'face'
    
    private Integer notificationsEnabled; // 0: 禁用, 1: 启用
}
